package
{
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.text.TextField;


	public class CircleSprite extends Sprite
	{
		//public function CircleSprite()
		//{
		//	super();
		//}
		public function CircleSprite(size:Number)
		{
			super();
			this.doDrawCircle(size);
			
		}
		private function doDrawCircle(size:Number):void {
            var child:Shape = new Shape();
            var halfSize:uint = Math.round(size / 2);
            child.graphics.beginFill(0x0099ff);
            child.graphics.lineStyle(1, 0x663300);
            child.graphics.drawCircle(halfSize, halfSize, halfSize);
            child.graphics.endFill();
            addChild(child);
        }
        private function doDrawText(text:String):void{
        	var text1:TextField = new TextField();
        	text1.text = text;
        	addChild(text1);
        }
	}
}